package com.mew.common.rest.golddeal;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author dylin
 * @create 2021/2/2 0002
 */
@Data
@ToString
@NoArgsConstructor
public class BuyGoldRequestMessage extends ZebraBaseMessage<BuyGoldRequestMessage> {
    private int bid;//条目ID
    //TODO 购买对接支付渠道后 应该回传递订单和key等信息

    private long uid;//uid
    @Override
    public void write(ByteBuf b) {

    }

    @Override
    public BuyGoldRequestMessage read(ByteBuf b) {
        BuyGoldRequestMessage message=new BuyGoldRequestMessage();
        message.setBid(this.readInt(b));
        return message;
    }
}
